package com.lvmama.rhino.pojo;

import java.io.Serializable;

/**
 * @Author:caoyong
 * @Description:
 * @Date：2017/10/23
 */
public class NPSStatistics implements Serializable{
    private static final long serialVersionUID = -2439152100533439875L;
    /**
     * nps
     */
    private Float nps;
    /**
     * 贬低者
     */
    private Integer detractor;
    /**
     * 被动者
     */
    private Integer passives;
    /**
     * 推荐者
     */
    private Integer presenter;

    private Integer npsSum;

    private String category;

    private String categoryName;

    private String commitType;

    private String commitTypeName;
    public Float getNps() {
        return nps;
    }

    public void setNps(Float nps) {
        this.nps = nps;
    }

    public Integer getDetractor() {
        return detractor;
    }

    public void setDetractor(Integer detractor) {
        this.detractor = detractor;
    }

    public Integer getPassives() {
        return passives;
    }

    public void setPassives(Integer passives) {
        this.passives = passives;
    }

    public Integer getPresenter() {
        return presenter;
    }

    public void setPresenter(Integer presenter) {
        this.presenter = presenter;
    }

    public Integer getTotal(){
        return detractor + passives + presenter;
    }

    public Integer getNpsSum() {
        return npsSum;
    }

    public void setNpsSum(Integer npsSum) {
        this.npsSum = npsSum;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCommitType() {
        return commitType;
    }

    public void setCommitType(String commitType) {
        this.commitType = commitType;
    }

    public String getCommitTypeName() {
        return commitTypeName;
    }

    public void setCommitTypeName(String commitTypeName) {
        this.commitTypeName = commitTypeName;
    }

    @Override
    public String toString() {
        return "NPSStatistics{" +
                "nps=" + nps +
                ", detractor=" + detractor +
                ", passives=" + passives +
                ", presenter=" + presenter +
                ", npsSum=" + npsSum +
                ", category='" + category + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", commitType='" + commitType + '\'' +
                ", commitTypeName='" + commitTypeName + '\'' +
                '}';
    }
}
